package com.sx.art2.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.sx.art2.beans.ShangjiaAccount;
import com.sx.art2.service.ShangjiaAccountService;

@Controller
@RequestMapping("/ShangjiaAccount")
public class ShangjiaAccountController {

	@Autowired
	ShangjiaAccountService shangjiaAccountService;
	@RequestMapping("/AccountInfo")
	public ModelAndView selectAll() {
		ModelAndView mv= new ModelAndView();
		List<ShangjiaAccount> list =shangjiaAccountService.selectAllInfo();
		mv.addObject("list", list);
		mv.setViewName("admin/Shangjiamanagement");
		return mv;
	}
}
